package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商对象 supplier
 * 
 * @author ruoyi
 * @date 2025-10-09
 */
public class Supplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键（自增） */
    private Long id;

    /** 供应商名称（必填） */
    @Excel(name = "供应商名称", readConverterExp = "必=填")
    private String name;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 主营商品（如“零食、饮料”） */
    @Excel(name = "主营商品", readConverterExp = "如=“零食、饮料”")
    private String mainProducts;

    /** 合作周期（如“1年以上”） */
    @Excel(name = "合作周期", readConverterExp = "如=“1年以上”")
    private String cooperationCycle;

    /** 结算方式：1=款到发货，2=月结 */
    @Excel(name = "结算方式：1=款到发货，2=月结")
    private Long settlementType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setMainProducts(String mainProducts) 
    {
        this.mainProducts = mainProducts;
    }

    public String getMainProducts() 
    {
        return mainProducts;
    }

    public void setCooperationCycle(String cooperationCycle) 
    {
        this.cooperationCycle = cooperationCycle;
    }

    public String getCooperationCycle() 
    {
        return cooperationCycle;
    }

    public void setSettlementType(Long settlementType) 
    {
        this.settlementType = settlementType;
    }

    public Long getSettlementType() 
    {
        return settlementType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("mainProducts", getMainProducts())
            .append("cooperationCycle", getCooperationCycle())
            .append("settlementType", getSettlementType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
